package club.piclight.LibraryMan.model.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;

//lombok注解
@NoArgsConstructor //无参构造器
@AllArgsConstructor //全参构造
@Data //getter&setter
@Entity //让Hibernate 按照此类建表
public class Book {
    @Id //设置主键
    private String isbn;
    private String title;
    private String publisher;
    private String author;
    private String publish_date;
    private String cover_img;
    private String intro;
}
